package com.feeyo.groundservice.base_util

import com.feeyo.groundservice.base_util.loading.LoadingPopViewUtil


/**
 *作者：QLH on 2020-11-01
 *描述：全局loading对话框
 */
object LoadingUtil {

    fun show(msg: String? = null, dismissOnBackPressed: Boolean = true) =
        LoadingPopViewUtil.show(msg?.replace("...", "..."), dismissOnBackPressed)

    /**立即关闭**/
    fun close() = LoadingPopViewUtil.close()

    /**带动画的关闭**/
    fun smartClose() = LoadingPopViewUtil.smartClose()

}